#ifndef MF_APP_RUNNER_H
#define MF_APP_RUNNER_H

#import "mfUtils.h"
#import "mfTouchApp.h"
#import "EAGLView.h"
#import "mfInteractiveView.h"

static int		width = 320, height = 480;
static float 	ofFrameRate = 30; // default

void		mfRunApp(mfTouchApp *app);

float 		ofGetFrameRate();
void 		ofSetFrameRate(int targetRate);

int 		ofGetWidth();
int 		ofGetHeight();

int			mfGetOrientation();
void		mfSetOrientation(int mode);

void		mfShowStatusBar();
void		mfHideStatusBar();


//-----------------------------------------------
@interface mfAppRunner : NSObject
{
	UIWindow*			_window;
	EAGLView*			_glView;
	NSTimer*			animator;
}

+ (mfTouchApp*) getTouchApp;

- (void)startAnimation;
- (void)stopAnimation;

- (void)restartAnimationWithMultiplier:(float)multiplier;

@end

#endif